package cn.wolfcode.mapper;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

   /* int selectForCount(QueryObject qo);*/

    List<Permission> selectForList(QueryObject qo);

    //查询数据库已有的权限表达式
    List<String> selectAllExpression();

    //根据登录用户ID查询该员工拥有的权限表达式列表
    List<String> selectExpressionByEmpId(Long id);

}